import os

from flask import Flask

from controller.user import user
from controller.article import article

app = Flask(__name__)
# 启用session
app.config['SECRET_KEY'] = os.urandom(24)

app.register_blueprint(user)
app.register_blueprint(article)


if __name__ == '__main__':
    app.run(debug=True)
